from django.urls import path

from accounts.views import user_info, user_list_slice, user_list_paginator, UserListView, user_register, \
    user_signup_register, user_hand_register, user_create, user_delete, user_update, user_login, user_edit, user_reg, \
    user_test, test_pas, user_change, first_page, upload_use_form, upload_use_form2

urlpatterns = [
    path('',first_page ,name='first_page'),
    path('user/create/',user_create,name='user_create'),
    path('user/delete/',user_delete,name='user_delete'),
    path('user/update/',user_update,name='user_update'),
    path('user/info/',user_info,name='user_info'),
    path('user/list/slice/<int:page>',user_list_slice,name='user_list_slice'),
    path('user/list/paginator/<int:page>',user_list_paginator,name='user_list_paginator'),
    path('user/list/class/',UserListView.as_view(),name='user_list_class'),
    path('user/register/',user_register,name='user_register'),
    path('user/signup/register/',user_signup_register,name='user_signup_register'),
    path('user/hand/register/',user_hand_register,name='user_hand_register'),
    #用户登录表单
    path('user/login/',user_login,name='user_login'),
    #用户信息维护
    path('user/edit/',user_edit,name='user_edit'),
    #用户注册表单
    path('user/reg/',user_reg,name='user_reg'),
    #练习
    path('user/test/',user_test,name='user_test'),
    #练习-两次密码输入是否一致
    path('user/pas/',test_pas,name='test_pas'),
    #表单文件上传
    path('upload/form/',upload_use_form, name='upload_use_form'),
    #django表单文件上传
    path('upload/form2/',upload_use_form2, name='upload_use_form2'),

    #用户信息维护-来自ORM表单
    path('user/change/',user_change, name='user_change'),


]
